home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
351-375
/
disk_359
/
dice
/
dice.lzh
/
include
/
assert.h
next >
Wrap
C/C++ Source or Header
|
1990-02-20
|
441b
|
27 lines
/*
* ASSERT.H
*
* relatively optimized, takes advantage of GNU-cpp __BASE_FILE__ macro
* allowing us to store the filename string once in a static decl.
*/
#ifndef _ASSERT_H
#define _ASSERT_H
static char *__BaseFile = __BASE_FILE__;
extern void __FailedAssert(char *, int);
#ifndef assert
#ifdef NDEBUG
#define assert(ignore)
#else
#define assert(exp) if (exp) __FailedAssert( __BaseFile, __LINE__);
#endif
#endif
#endif